Latest Questions

How to identify if an error crashes the app in Flutter with Sentry

I'm tracking all my app crashes with Sentry and all errors are tracked successfully, but I still haven't found a way to identify if the error reported by Sentry

DOMException: Failed to load because no supported source was found in html file

im getting DOMException: Failed to load because no supported source was found in audio.play(). im getting his issue on audioElement.src = 'songs/${index+1}.mp

Excel - multiple value search across multiple columns or one column with multiple values

I have 7 criteria = TMO-1 through to TMO-7 I have two scenarios to search from. i have either got a single excel with TMO-6, TMO-201, TMO-67,... etc (some have

Unable to make raw SQL calls from Entity Framework Core

I am working on a project where I am moving specific rows from a table between multiple different environments. The table has an Identity column and when I try

How to use DBContextFactory in Generic Repository

My current application has three layers: Web, Infrastructure and Core. Generic Repository is in Infrasturcture layer and works fine with DBContext. After I swit

Why function pointer in the structure causes relocation at program load-time

I've the following code that I compile and run on Linux: #include <stdio.h> // can't be static void do_stuff(void) { ;; } typedef void (*func)(void)

How to use external functions in OpenModelica(linux) to call a function in the CoolProps Shared Library? Using a Fortran-77 wrapper didnt work out

I tried out the Fortran Wapper in CoolProp Sources The example fortran code given in the wrapper uses the function PropsSI in CoolProp. double precision T,Q,D,h

how to remove a function once called in php

I have a login form and a registration form in my index.php when user open the page it shows the login page it works fine but when i click "registr now" i need

How can you define a function who's return type depends on the value of its parameter?

Let's say I want to define a function called zero that takes a string like "f" or "i" and returns the zero value for either float or int. So we could do somethi

bash setting variable getting error command not found [duplicate]

I'm writing one small bash script for my Project but i getting some errors #!/bin/bash count=$(cat Downloads/datei.csv | wc -l); for((i=115;i&

different PDB files add hydrogen same time using reduce program in shell script with modified file name (1axk.pdb <---->1ackH.pdb)

I tried to run this code but its repeated the same file and ignored the other files and I want to stored all the directory files into a variable so that, read t

headless chrome downloading file without being asked to

I have a selenium test that requires a file download. I am achieving it by retrieving a url for the download from a page web-element and then doing driver.get(&

Uncaught (in promise) SyntaxError: Unexpected token in JSON at position 0 And 504 connection error to ipfs

I am trying to render NFTs I've created and am getting a 504 (timeout) error. This is very strange because it was working a while ago and I didn't actually chan

How does one close stdin from the windows CMD prompt?

I know that one can close stdin when executing a command from a Linux CLI using logic such as: 0<&- <command> This simulates/emulates running an a

Canonical Tag for dynamic subsites with nearly the same frame (navbar and sidebars)

I have a JS-based dynamic website which is built the following way: On the server side the index.html contains the "frame" of the website: the navbar and the si

optional chaining in Angular Template

Compiled with problems:X ERROR src/app/components/users/users.component.html:2:22 - error TS2532: Object is possibly 'undefined'. 2 <ul *ngIf="loaded &

How to convert rgb mask to categorical in keras

I try to find a proper solution to convert a rgb mask from "cam vid" dataset to categorical mask. I have the list of rgb value and corresponding label. What is

Databricks REST API call for updating branch error : User Settings > Git Integration to set up an Azure DevOps personal access token

I am getting below error for updating the repo to a different branch using databricks rest api as mentioned at https://docs.databricks.com/dev-tools/api/latest/

SQL - Getting day for the whole week

I want to get the whole day of the week depend on the date, my query is working and getting the result that I want but when the date value is Sunday, result cha

Gitlab Issue on git push -A

When I git push a Folder with the following Commands git add -A <directory> and git commit and git push it pushes some sub-directories as directories and

Electron cache images and then read it when the image is used

When electron starts, the cache images is read, and then read it when the image is used. i can save images in main process. fetch(`${server_host_ip}${image}`)

PHP mail function doesn't complete sending of e-mail

<?php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $from = 'From: yoursite.com'; $to = 'contact@yoursi

Creating a new database is not working at server in codeigniter 3

I have a accounting management project where I need to store some specific data to a new database. I am fetching a issue when I am going to create a new databas

Using Nginx with gunicorn without .sock on linux?

I have a python web app that uses Flask and gunicorn, and everything works great. I plan on hosting this on a public website and want to use nginx, but did not

How can send custom error message after git push from local git server by using jgit api

I have been making a local git server by using jgit . Following is my code repository for local git server. https://github.com/masumcse1/mygitserver https://git

How to force calibration before measuring a DWG file in Forge Viewer?

After checking the documentation of Forge Viewer, I found that there is an option to force the calibration before taking measurements in PDF sheets. But is ther

How do I persist authentication state in my Kotlin firebase app?

I am building a kotlin app using FirebaseAuth and I want to add some custom rules to keep the user signed in for a time even if they are not using the app. All

Is it safe to use printf("%*s", len, ptr) where len is an integer and ptr is non-null terminated?

Is it safe to use printf("%*s", len, ptr) where len is an integer and ptr is non-null terminated? If not safe, what will happen in the worst case? And then how

renaming a 7zip extracted folder error Access i denied R

I extracted a TxtinOut named folder using the following cmd in R shell('7z x D:/Region02/test.7z -oD:/Region02 -r -y') I want to rename this folder TxtinOut t

DiscordPy Bot abnormally long shutdown times

So here's the crux of the problem. I'm using the Discord Py API (1.7.3). I have 2 bots I run that use it, Red Bot and the one I made myself. I've come to notice